export class ResponseUtil {
  static success<T>(data: T, message = '操作成功') {
    return {
      success: true,
      message,
      data,
      timestamp: new Date().toISOString()
    };
  }

  static error(message: string, error?: any) {
    return {
      success: false,
      message,
      error: error?.message || null,
      timestamp: new Date().toISOString()
    };
  }
}
